/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class DisinfectionCabinet {
    static categoryCode = '010050017';

    static categoryName = '消毒柜';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return DisinfectionCabinet.categoryCode;
    }

    get categoryName() {
        return DisinfectionCabinet.categoryName;
    }

    getDisinfectionSwitch(params) {
        return command({
            method: 'getDisinfectionSwitch',
            methodId: 'aIokpw7vU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDoorState(params) {
        return command({
            method: 'getDoorState',
            methodId: 'ag6DAWiXw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDryingSwitch(params) {
        return command({
            method: 'getDryingSwitch',
            methodId: 'aIwo4lxyG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'aINcJ9lfI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'aIObjr8JE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'agiRKkgp3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDisinfectionSwitch(params) {
        return command({
            method: 'setDisinfectionSwitch',
            methodId: 'aDiNMHWsC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDryingSwitch(params) {
        return command({
            method: 'setDryingSwitch',
            methodId: 'aD0JoSacx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'aD5xCJr09',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default DisinfectionCabinet;
